package com.xushuda.yas.tmp;

/**
 * inedxed file
 * @author xushuda
 *
 */
public interface IFile {

    /**
     * insert
     * @param key
     * @param data
     */
    public void insert(byte[] key, byte[] value);
    
    /**
     * get the data from the file by key
     * @param key
     * @return
     */
    public byte[] get(byte[] key);
    
    /**
     * the num of the key=>value pair 
     * @return
     */
    public long size();
    
    /**
     * seek to the key position
     * @param key
     * @return
     */
    public boolean seek(byte[] key);
    
    /**
     * return the next
     * @return
     */
    public byte[] next();
    
    
}
